<template>
  <!-- 信息 -->
  <div class="content">
    <van-collapse v-model="activeName" accordion>
      <van-collapse-item title="车辆" name="1">
        <div>看驾驶证</div>

      </van-collapse-item>
      <van-collapse-item title="驾驶证" name="2">
        <div v-for="item in contentList" :key="item.id">
          <div @click="license(item.name)">{{ item.title }}</div>
          <br />
          
        </div>
      </van-collapse-item>
      <van-collapse-item title="违章" name="3">
        <div>去看驾驶证</div>
        <br />

      </van-collapse-item>
      <van-collapse-item title="意见反馈" name="4">
        <div>去看驾驶证</div>
        <br />

      </van-collapse-item>
    </van-collapse>
  </div>
</template>

<script>
// import { licenseCar } from "@/service/traffic/traffic";


export default {
  props: ["contentList"],
  data() {
    return {
      activeName: "2",
    };
  },
  methods: {
    license(name) {
      // console.log(name);
      this.$emit('LicenseClick',name)
    },
  },
 

};
</script>

<style>
</style>